/**
 * @description: 请求结果集
 */
export enum ResultEnum {
    SUCCESS = 1,
    EXPIRED = -2,
    MISOPERATION = 10,
    ERROR = -1,
}

/**
 * @description http响应状态码集
 */
export enum responseStateEnum {
    SUCCESS = 200,
    UNAUTHORIZED = 401,
    BADREQUEST = 400,
    SERVERERROR = 500,
}

/**
 * @description: 请求方法
 */
export enum RequestEnum {
    GET = 'get',
    POST = 'post',
    PATCH = 'patch',
    PUT = 'put',
    DELETE = 'delete',
}

/**
 * @description:  常用的contentTyp类型
 */
export enum ContentTypeEnum {
    // json
    JSON = 'application/json;charset=UTF-8',
    // json
    TEXT = 'text/plain;charset=UTF-8',
    // form-data 一般配合qs
    FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
    // form-data  上传
    FORM_DATA = 'multipart/form-data;charset=UTF-8',
}
